﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Lib.Paging;
using SDT.Site.Properties;

namespace SDT.Site.ViewModels
{
    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 19/07/2011
    /// </summary>
    public class QuestionViewModels
    {
        public IPagedList<Question> Questions
        {
            get;
            set;
        }
        public QuestionCategory Category { get; set; }
        public IList<QuestionCategory> Categories { get; set; }
    }
    public class QuestionCategoryViewModels
    {
        public int CategoryID { get; set; }
        public IList<QuestionCategory> Categories { get; set; }
    }
    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 20/07/2011
    /// </summary>
    public class QuestionInputModels
    {
        public QuestionInputModels()
        {
        }

        private List<QuestionCategory> _category = new List<QuestionCategory>();
        public List<QuestionCategory> QuestionCategory
        {
            get
            {
                return this._category;
            }
            set
            {
                if (value != null)
                    this._category = value;
            }
        }

        public List<ArticleCategory> ArticleCategory
        {
            get;
            set;
        }

        public Question Question
        {
            get;
            set;
        }

        private Answer _an = new Answer();
        public Answer Answer
        {
            get
            {
                return this._an;
            }
            set
            {
                this._an = value;
            }
        }

        public IPagedList<Answer> ListAnswer
        {
            get;
            set;
        }
    }
}
